Abstract: Sleep is a physiological development which performs recuperative functions for the brain and body. It is very necessary to sustain a healthy life status. A sleep disorder is a medical disorder which occurs during sleep. Some disorders are dangerous and harmful. Rapid eye movement behaviour (RBD) is a sleep disorder (also called parasomnia) involves abnormal behaviour during sleep time with rapid eye movement (REM) sleep. REM is the stage in which most vivid dreaming occurs, person unconsciously acts out in his/her dream. These acts can be violent in nature and sometimes cause injury to the patient or to his/her bed partner. This abnormality is measured by a classic non-invasive method known as EEG. This paper shows the use of EEG for the diagnosis of sleep disorder and also aims to promote technology innovation to achieve a reliable and efficient outcome from the diagnosis and to differentiate all the stages of disorder. An interactive MATLAB algorithm is used for processing continuous and event-related EEG waveforms.

Keywords: sleep disorder, REM, EEG, MATLAB algorithm.